Ext.define('System.view.role.RoleList', {
	extend: 'cceaf.control.GridPanel',
    alias: 'widget.sys_rolelist',
    requires : [ 'System.view.role.Role'],
    selType: 'checkboxmodel',
    selModel: 'checkboxmodel',
    
    moduleName: '角色',
    masterKeyIds: 'roleid',
    model: 'System.model.role.SysRoleModel',
    
    queryAction: 'role/get',
    findByKeyAction: 'role/find',
	addAction: 'role/add',
	editAction: 'role/edit',
	viewAction: 'role/find',
	deleteAction: 'role/delete',
	
	columns: [
        {xtype: 'rownumberer'},
        {dataIndex: 'roleid', header: '角色id，由序列"SEQ_ROLE"生成', hidden: true}, 
        {dataIndex: 'roledesc', header: '角色描述', sortable: true, flex: 1}        
    ],
    queryToolbar: [{
    	dock: 'top', 
		xtype: 'toolbar',
		items:[
			{xtype: 'label', text: '角色描述'},
			{xtype: 'textfield', name: 'q_roledesc'},
			{xtype: 'label', text: ''},
        	'->',
        	{itemId: 'btnQuery', iconCls: 'page_queryIcon', text: ' 查询 ', pressed: true},
        	'-',
        	{itemId: 'btnReset', iconCls: 'page_resetIcon', text: ' 重置 ', pressed: true}
		]
    }],
    createForm: function(){
    	this.billForm = new System.view.role.Role({
    		fatherPanel: this
    	});
    }
        
});